home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2591 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  877 b 

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Variable paramater list macros
  5. Date: 22 Jan 1996 07:56:23 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4e0c37INN340@keats.ugrad.cs.ubc.ca>
  8. References: <4crc3v$hm8@barnacle.iol.ie>
  9. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  10.  
  11. In article <4crc3v$hm8@barnacle.iol.ie>, Derek Hardiman <derekh@iol.ie> wrote:
  12. >I want to replace a variable argument list function (which I use for
  13. >debugging ) with a macro that does nothing.
  14. >
  15. >Unfortunately I can't remember how to write a macro that takes a
  16. >variable number of paramaters ! Can you ?
  17.  
  18. Yes. I use GCC. Its preprocessor allows this. Of course, using the special
  19. features of GCC makes your code non portable to other compilers (but some
  20. people don't care).
  21. -- 
  22.  
  23.